package practical_projects.games.submarine_war_v2;

import javax.swing.*;

public class Mine extends Weapon {     // 水雷
    public Mine(int x, int y) {
        super(11, 11, x, y, 2);
    }

    @Override
    public void move() {
        y -= speed;
    }

    @Override
    public ImageIcon getImage() {
        return Images.mine;
    }

    @Override
    public boolean isOutBorder() {
        return y <= World.seaLevel - height;
    }

}
